//
//  Common.swift
//  ZPWeiBo01
//
//  Created by Nevermore on 16/9/1.
//  Copyright © 2016年 Nevermore. All rights reserved.
//

import UIKit


let AppThemeColor = UIColor.orangeColor()

func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    
  return  UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
    
    
}

func RandomColor() -> UIColor{
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)

    return RGB(r, green: g, blue: b)
}
